package net.j4love.sjdbc.vo;

import net.j4love.sjdbc.entity.Order;

import java.util.List;

/**
 * @author he peng
 * @create 2017/9/13 15:59
 * @see
 */
public class UserOrderVO {

    private Long userId;
    private String userName;
    private List<Order> orders;

    public Long getUserId() {
        return userId;
    }

    public UserOrderVO setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public UserOrderVO setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public UserOrderVO setOrders(List<Order> orders) {
        this.orders = orders;
        return this;
    }

    @Override
    public String toString() {
        return "UserOrderVO{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", orders=" + orders +
                '}';
    }
}
